<?php  //$Id: settings.php,v 1.1.2.2 2007/12/19 17:38:47 skodak Exp $


$options = array('all'=>get_string('allcourses', 'block_course_list'), 'own'=>get_string('owncourses', 'block_course_list'));

$settings->add(new admin_setting_configselect('block_course_list_adminview', get_string('adminview', 'block_course_list'),
                   get_string('configadminview', 'block_course_list'), 'all', $options));

$settings->add(new admin_setting_configcheckbox('block_course_list_hideallcourseslink', get_string('hideallcourseslink', 'block_course_list'),
                   get_string('confighideallcourseslink', 'block_course_list'), 0));

/*
 * Following settings added by U.Isuru Madushanka.
 * Only for usage of advanced course list.
 */

$level_text_prefex = get_string('nodelabelprefix','block_course_treelist');
$level_text_postfix = get_string('nodelabelpostfix','block_course_treelist');

$options_fontsize = array('1'=>'size 1', '2'=>'size 2');
$options_postgrduate_levels = array('1'=> $level_text_prefex.'1',
                                    '2'=> $level_text_prefex.'2',
                                    '3'=> $level_text_prefex.'3',
                                    '4'=> $level_text_prefex.'4',
                                    '5'=> $level_text_prefex.'5',
                                    '6'=> $level_text_prefex.'6',
                                    '7'=> $level_text_prefex.'7',
                                    '8'=> $level_text_prefex.'8',
                                    '9'=> $level_text_prefex.'9',
                                    );
$options_nodeshowtype = array('1' => 'By Level', 
                              '2' => 'By Completness');

$settings->add(new admin_setting_configselect('block_course_list_showtype',
                   get_string('coursetreelistshowtype','block_course_treelist'),
                   get_string('configcoursetreelistshowtype','block_course_treelist'), '1', $options_nodeshowtype));
$settings->add(new admin_setting_configcheckbox('block_course_list_showrecentactivities',
                   get_string('showrecentactivities','block_course_treelist'),
                   get_string('configshowrecentactivities', 'block_course_treelist'),
                   1));
$settings->add(new admin_setting_configselect('block_course_list_fontsizecompleted',
                   get_string('fontsizecompleted','block_course_treelist'),
                   get_string('configfontsizecompleted','block_course_treelist'), '2', $options_fontsize));
$settings->add(new admin_setting_configcheckbox('block_course_list_automatichidenode',
                   get_string('automatichidenode','block_course_treelist'),
                   get_string('configautomatichidenode','block_course_treelist'),
                   1));
$settings->add(new admin_setting_configcheckbox('block_course_list_automaticcollapse',
                   get_string('automaticcollapse','block_course_treelist'),
                   get_string('configautomaticcollapse','block_course_treelist'),
                   1));
$settings->add(new admin_setting_configcheckbox('block_course_list_icondistinguishable',
                   get_string('icondistinguishable','block_course_treelist'),
                   get_string('configicondistinguishable','block_course_treelist'),
                   1));
$settings->add(new admin_setting_configcheckbox('block_course_list_showsettings',
                   get_string('showsettings','block_course_treelist'),
                   get_string('configshowsettings','block_course_treelist'),
                   1));
$settings->add(new admin_setting_configselect('block_course_list_postgradstartlevel',
                   get_string('postgradstartlevel','block_course_treelist'),
                   get_string('configpostgradstartlevel','block_course_treelist'), '5', $options_postgrduate_levels));

?>
